<?php

$object = (object) array(
    'first' => 1,
    'second' => 2,
    'third' => 3
);
print_r($object);

$array = get_object_vars($object);
print_r($array);

$array = (array) $object;
print_r($array);

$array = array_values((array) $object);
print_r($array);

$array = array();
for ($i=0; $i<10; $i++)
    $array[] = $object;
print_r($array);

?>
